home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 009 / proff / lookup.h < prev    next >
C/C++ Source or Header  |  1995-03-17  |  560b  |  31 lines

  1.  
  2.  
  3.  
  4. /*
  5.  * from K&R "The C Programming language"
  6.  * Table lookup routines 
  7.  * structure and definitions
  8.  *
  9.  */
  10.  
  11.                     /* basic table entry */
  12. struct hashlist {
  13.     char    *name;
  14.     char    *def;
  15.     struct    hashlist *next;        /* next in chain     */
  16. };
  17.                     /* basic table entry */
  18. struct lexlist {
  19.     char    *name;
  20.     int    val;            /* lexical value     */
  21.     int    flag;            /* optional flag val */
  22.     struct    lexlist  *link;        /* next in chain     */
  23. };
  24.  
  25.  
  26. #define HASHMAX    100            /* size of hashtable */
  27.  
  28. extern struct
  29. lexlist    (*(*lextable))[];/* global pointer for lexical analyser hash table */
  30.  
  31.